Scripts in both the body and the head section: You can place an unlimited number of scripts in your document, so you can have scripts in both the body and the head section.
<html> <head> <script type="text/javascript"> some statements </script> </head> <body> <script type="text/javascript"> some statements </script> </body> |
#Title: Where to Put the JavaScript
#Element: 82: Where to Put the JavaScript
#Article: 78: JavaScript Where To ...